<%@include file="header.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<div id="page-wrapper">
	<div class="row">
		<div class="col-lg-12">
			<h1 class="page-header">Thông tin tác giả</h1>
		</div>
		<!-- /.col-lg-12 -->
	</div>
	<c:url value="/author/saveorupdate" var="theAction"/>
	<form:form commandName="author" style="width: 50%;" action="${theAction}" method="POST">
		<label>Tên tác giả</label>
		<div class="form-group input-group">
			<span class="input-group-addon">Required</span>
			<form:input class="form-control" placeholder="Ví dụ: Cao Hoài Việt " type="text"
				path="authorName"></form:input>
			<form:input type="hidden" path="authorId"></form:input>
		</div>
		
		<label>Địa chỉ</label>
		<div class="form-group input-group">
			<span class="input-group-addon">Required</span>
			<form:input class="form-control" placeholder="Ví dụ: Hà Nội" type="text"
				path="authorAddress"></form:input>
		</div>
		
		<button type="submit" class="btn btn-warning">Lưu lại</button>
		<a href="<c:url value="/author"/>"> <span
			class="btn btn-info ">Quay lại danh sách </span>
		</a>
	</form:form>
</div>
<!-- /#page-wrapper -->
<!-- /#wrapper -->
<%@include file="footer.jsp"%>